package com.club.football.utils;

/**
 * Bean工具
 *
 * @author 1
 * @date 2023/09/22
 */
public class BeanUtils {
    public static <T, E> E copier(T t, E e) {
        if (t == null) {
            return null;
        }
        org.springframework.beans.BeanUtils.copyProperties(t, e);
        if (e instanceof Format) {
            ((Format) e).format();
        }
        return e;
    }
}